package week4;

/**
 * Created by dell on 2017/3/18.
 */
public class Ocean2Ocean {
    public static void main(String[] args) {
        doSwim(new Ocean1Human("Justin"));
        doSwim(new Ocean1Submarine("黄色一号"));
    }

    static void doSwim(Ocean1Swimmer swimmer) {
        swimmer.swim();
    }
}
